<style>
    #upload_files .upload_file_btn{height: 30px;line-height: 28px;width: 100%;cursor: pointer;background-color: #1ca5ff!important;}
    #upload_files .upload_file_btn .jia{margin-right: 5px;font-size: 13px}

    #upload_files .filediaa .filebb{
        width: calc(48% - 20px);
        float: left;
        height: 40px;
        border: 1px solid #eeeeee;
        margin: 4px 0 0 20px;
        position: relative;
    }
    #upload_files .filediaa .filebb:hover{
        border: 1px solid #409EFF;
        cursor: pointer;
    }
    #upload_files .filediaa .filebb .tu{
        width: 30px;
        height: 30px;
        border: 1px solid #eeeeee;
        position: relative;
        top: 4px;
        left: 5px;
        float: left;
    }
    #upload_files .filediaa .filebb .tu img{
        width: 30px;
    }
    #upload_files .filediaa .filebb .tu .zimu{
        line-height: 30px;
        text-align: center;
        color: #bbb;
    }
    #upload_files .filediaa .filebb .titss{
        width: calc(100% - 110px);
        line-height: 40px;
        margin-left: 45px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        color: #777;
    }
    #upload_files .filediaa .filebb .cha{
        color: #aaaaaa;
        font-size: 16px;
        position: absolute;
        top: 11px;
        right: 30px;
        cursor: pointer;
        font-weight: bold;
    }
    #upload_files .filediaa .filebb .cha:hover{
        color: #409EFF;
    }
    #upload_files .filediaa .filebb .del{
        color: #aaaaaa;
        font-size: 16px;
        position: absolute;
        top: 11px;
        right: 7px;
        cursor: pointer;
        font-weight: bold;
    }
    #upload_files .filediaa .filebb .del:hover{
        color: red;
    }
</style>

<div class="layui-form-item">
    <div id="upload_files">
        <div class="layui-row layui-col-space10" style="background-color: #fafafa">
            <div class="layui-col-md12" style="display: flex;align-items: center;background-color: #F2F2F2!important;">
<!--                <label class="layui-form-label" style="display: table;padding-left: 10px!important;padding-right: 10px!important;">-->
<!--                    <button type="button" class="layui-btn upload_file_btn"><i class="fa fa-plus jia"></i>上传附件</button>-->
<!--                </label>-->
                <span class="subbutttt" onclick="upload_files_file_btn('upload_files')">
                    <i class="layui-icon layui-icon-addition" style="font-size: 12px;margin-right: 3px"></i>相关附件
                </span>
                <div class="layui-input-block" style="background-color: #FFFFFF!important;margin-left: 0 !important;width: calc(100% - 180px)!important;border: 1px solid #eee;height: auto!important;min-height: 49px">
                    <div class="filediaa" id="fileboxss"></div>
                    <div style="clear: both"></div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    function public_upload_file_load(dom, data=[], tits='附件信息') {
        if(data.length > 0){
            upload_files_edit_data(dom, data);
        }
        $("#"+dom).find('.upload_file_btn').click(function () {
            upload_files_file_btn(dom);
        });
    }
</script>
